package Formularios;

import java.awt.CardLayout;
import java.awt.event.ItemEvent;
import java.text.DecimalFormat;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableModel;
import produccion.Color;
import produccion.Cubierta;
import produccion.Formato;
import produccion.InteriorCompaginable;
import produccion.Libro;
import produccion.Maquina;
import produccion.NMaquina;
import produccion.TCubierta;

/**
*
* @author PRE PRENSA01
*/
public class Reporte extends javax.swing.JFrame {

   /**
    * Creates new form Reporte
    */
   
   FormaInterior forma = new FormaInterior();
   
      
   public Reporte() {
       initComponents();
   }

   /**
    * This method is called from within the constructor to initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is always
    * regenerated by the Form Editor.
    */
   @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanelDatosGenerales = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jTextFieldTitulo = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jTextFieldCliente = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jComboBoxFormato = new javax.swing.JComboBox();
        jLabel7 = new javax.swing.JLabel();
        jTextFieldTiraje = new javax.swing.JTextField();
        jPanelDatosPublicaciones = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jComboBoxPublicacion = new javax.swing.JComboBox();
        jPanelCambiante = new javax.swing.JPanel();
        jPanelLibros = new javax.swing.JPanel();
        jPanelLibroInteriores = new javax.swing.JPanel();
        jButtonIngresarInterior = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTableLibroInteriores = new javax.swing.JTable();
        jButtonQuitarInterior = new javax.swing.JButton();
        jPanelLibroCubierta = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jComboBoxLibroTipoCubierta = new javax.swing.JComboBox();
        jCheckBoxSolapa = new javax.swing.JCheckBox();
        jCheckBoxRetira = new javax.swing.JCheckBox();
        jPanel1 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jComboBoxCubiertaColorTira = new javax.swing.JComboBox();
        jLabel10 = new javax.swing.JLabel();
        jComboBoxCubiertaMaquinaTira = new javax.swing.JComboBox();
        jPanelCambianteRetira = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        jComboBoxCubiertaColorRetira = new javax.swing.JComboBox();
        jLabel11 = new javax.swing.JLabel();
        jComboBoxCubiertaMaquinaRetira = new javax.swing.JComboBox();
        jPanelVolantes = new javax.swing.JPanel();
        jButtonCalcular = new javax.swing.JButton();
        jButtonSalir = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu3 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("REGISTRO DE PUBLICACIONES");
        setResizable(false);

        jPanelDatosGenerales.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos Generales"));

        jLabel2.setText("Titulo:");

        jLabel3.setText("Cliente:");

        jLabel4.setText("Formato:");

        jComboBoxFormato.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A4", "A5", "Tamaño Especial", "1/2 Oficio" }));

        jLabel7.setText("Tiraje:");

        javax.swing.GroupLayout jPanelDatosGeneralesLayout = new javax.swing.GroupLayout(jPanelDatosGenerales);
        jPanelDatosGenerales.setLayout(jPanelDatosGeneralesLayout);
        jPanelDatosGeneralesLayout.setHorizontalGroup(
            jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosGeneralesLayout.createSequentialGroup()
                .addGap(8, 8, 8)
                .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel3)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextFieldTitulo)
                    .addComponent(jTextFieldCliente))
                .addGap(20, 20, 20)
                .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel4)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jTextFieldTiraje)
                    .addComponent(jComboBoxFormato, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelDatosGeneralesLayout.setVerticalGroup(
            jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosGeneralesLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel4)
                        .addComponent(jComboBoxFormato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel2)
                        .addComponent(jTextFieldTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, Short.MAX_VALUE)
                .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel7)
                        .addComponent(jTextFieldTiraje, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelDatosGeneralesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel3)
                        .addComponent(jTextFieldCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jPanelDatosPublicaciones.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos Especificos"));

        jLabel8.setText("Tipo de Publicacion:");

        jComboBoxPublicacion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Libros", "Volantes", "Dípticos", "Trípticos" }));
        jComboBoxPublicacion.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxPublicacionItemStateChanged(evt);
            }
        });
        jComboBoxPublicacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxPublicacionActionPerformed(evt);
            }
        });

        jPanelCambiante.setLayout(new java.awt.CardLayout());

        jPanelLibroInteriores.setBorder(javax.swing.BorderFactory.createTitledBorder("Interiores"));

        jButtonIngresarInterior.setText("Ingresar Interior");
        jButtonIngresarInterior.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonIngresarInteriorActionPerformed(evt);
            }
        });

        jTableLibroInteriores.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Páginas", "Color Tira", "Color Retira", "Maquina T", "Maquina R"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jTableLibroInteriores);

        jButtonQuitarInterior.setText("Quitar Interior");
        jButtonQuitarInterior.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonQuitarInteriorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelLibroInterioresLayout = new javax.swing.GroupLayout(jPanelLibroInteriores);
        jPanelLibroInteriores.setLayout(jPanelLibroInterioresLayout);
        jPanelLibroInterioresLayout.setHorizontalGroup(
            jPanelLibroInterioresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1)
            .addGroup(jPanelLibroInterioresLayout.createSequentialGroup()
                .addComponent(jButtonIngresarInterior)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonQuitarInterior)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        jPanelLibroInterioresLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButtonIngresarInterior, jButtonQuitarInterior});

        jPanelLibroInterioresLayout.setVerticalGroup(
            jPanelLibroInterioresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLibroInterioresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelLibroInterioresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonIngresarInterior)
                    .addComponent(jButtonQuitarInterior))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanelLibroCubierta.setBorder(javax.swing.BorderFactory.createTitledBorder("Cubierta"));

        jLabel9.setText("Tipo:");

        jComboBoxLibroTipoCubierta.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "COUCHE_BRILLANTE", "COUCHE_MATE" }));

        jCheckBoxSolapa.setText("Solapa");

        jCheckBoxRetira.setText("Retira");
        jCheckBoxRetira.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jCheckBoxRetiraItemStateChanged(evt);
            }
        });

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Tira"));
        jPanel1.setPreferredSize(new java.awt.Dimension(370, 106));

        jLabel5.setText("Color:");

        jComboBoxCubiertaColorTira.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "UNO", "DOS", "CUATRO" }));

        jLabel10.setText("Maquina:");

        jComboBoxCubiertaMaquinaTira.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "ROLAND200", "ROLAND300", "ROTAPRINT", "DAVIDSON" }));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel10)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jComboBoxCubiertaMaquinaTira, 0, 280, Short.MAX_VALUE)
                    .addComponent(jComboBoxCubiertaColorTira, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jComboBoxCubiertaColorTira, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(jComboBoxCubiertaMaquinaTira, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanelCambianteRetira.setLayout(new java.awt.CardLayout());

        jPanel4.setPreferredSize(new java.awt.Dimension(370, 80));

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 372, Short.MAX_VALUE)
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 80, Short.MAX_VALUE)
        );

        jPanelCambianteRetira.add(jPanel4, "Sin Retira");

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Retira"));

        jLabel6.setText("Color:");

        jComboBoxCubiertaColorRetira.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "UNO", "DOS", "CUATRO" }));

        jLabel11.setText("Maquina:");

        jComboBoxCubiertaMaquinaRetira.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "ROLAND200", "ROLAND300", "ROTAPRINT", "DAVIDSON" }));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel11)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jComboBoxCubiertaMaquinaRetira, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jComboBoxCubiertaColorRetira, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jComboBoxCubiertaColorRetira, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(jComboBoxCubiertaMaquinaRetira, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanelCambianteRetira.add(jPanel2, "Con Retira");

        javax.swing.GroupLayout jPanelLibroCubiertaLayout = new javax.swing.GroupLayout(jPanelLibroCubierta);
        jPanelLibroCubierta.setLayout(jPanelLibroCubiertaLayout);
        jPanelLibroCubiertaLayout.setHorizontalGroup(
            jPanelLibroCubiertaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLibroCubiertaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelLibroCubiertaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelLibroCubiertaLayout.createSequentialGroup()
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jComboBoxLibroTipoCubierta, javax.swing.GroupLayout.PREFERRED_SIZE, 499, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jCheckBoxSolapa)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jCheckBoxRetira)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanelLibroCubiertaLayout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanelCambianteRetira, javax.swing.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE))))
        );
        jPanelLibroCubiertaLayout.setVerticalGroup(
            jPanelLibroCubiertaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelLibroCubiertaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelLibroCubiertaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(jComboBoxLibroTipoCubierta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCheckBoxSolapa)
                    .addComponent(jCheckBoxRetira))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelLibroCubiertaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelCambianteRetira, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelLibrosLayout = new javax.swing.GroupLayout(jPanelLibros);
        jPanelLibros.setLayout(jPanelLibrosLayout);
        jPanelLibrosLayout.setHorizontalGroup(
            jPanelLibrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLibrosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelLibrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelLibroInteriores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelLibrosLayout.createSequentialGroup()
                        .addComponent(jPanelLibroCubierta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanelLibrosLayout.setVerticalGroup(
            jPanelLibrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelLibrosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelLibroCubierta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelLibroInteriores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanelCambiante.add(jPanelLibros, "Libros");

        javax.swing.GroupLayout jPanelVolantesLayout = new javax.swing.GroupLayout(jPanelVolantes);
        jPanelVolantes.setLayout(jPanelVolantesLayout);
        jPanelVolantesLayout.setHorizontalGroup(
            jPanelVolantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 800, Short.MAX_VALUE)
        );
        jPanelVolantesLayout.setVerticalGroup(
            jPanelVolantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 402, Short.MAX_VALUE)
        );

        jPanelCambiante.add(jPanelVolantes, "Volantes");

        javax.swing.GroupLayout jPanelDatosPublicacionesLayout = new javax.swing.GroupLayout(jPanelDatosPublicaciones);
        jPanelDatosPublicaciones.setLayout(jPanelDatosPublicacionesLayout);
        jPanelDatosPublicacionesLayout.setHorizontalGroup(
            jPanelDatosPublicacionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosPublicacionesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosPublicacionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelCambiante, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelDatosPublicacionesLayout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jComboBoxPublicacion, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        jPanelDatosPublicacionesLayout.setVerticalGroup(
            jPanelDatosPublicacionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosPublicacionesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosPublicacionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(jComboBoxPublicacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelCambiante, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jButtonCalcular.setText("Calcular");
        jButtonCalcular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCalcularActionPerformed(evt);
            }
        });

        jButtonSalir.setText("Salir");
        jButtonSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSalirActionPerformed(evt);
            }
        });

        jMenu1.setText("Publicaciones");

        jMenu3.setText("Libro");
        jMenu1.add(jMenu3);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Otros");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelDatosGenerales, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelDatosPublicaciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButtonSalir)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonCalcular)
                .addGap(40, 40, 40))
        );

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButtonCalcular, jButtonSalir});

        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelDatosGenerales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelDatosPublicaciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButtonCalcular, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonSalir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

   private void jComboBoxPublicacionItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxPublicacionItemStateChanged
       // TODO add your handling code here:
       CardLayout cl = (CardLayout)(jPanelCambiante.getLayout());
       cl.show(jPanelCambiante, (String)evt.getItem());
   }//GEN-LAST:event_jComboBoxPublicacionItemStateChanged

   private void jCheckBoxRetiraItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jCheckBoxRetiraItemStateChanged
       // TODO add your handling code here:
       CardLayout cl = (CardLayout)(jPanelCambianteRetira.getLayout());
       if (evt.getStateChange() == ItemEvent.SELECTED) {
           cl.show(jPanelCambianteRetira, "Con Retira");
       } else if (evt.getStateChange() == ItemEvent.DESELECTED) {
           cl.show(jPanelCambianteRetira, "Sin Retira");
       }
   }//GEN-LAST:event_jCheckBoxRetiraItemStateChanged

   private void jButtonIngresarInteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonIngresarInteriorActionPerformed
       // TODO add your handling code here:
       
       //forma.setPliegos(libro.calcularPliegos());
       DefaultTableModel model = (DefaultTableModel) jTableLibroInteriores.getModel();
       int result = JOptionPane.showConfirmDialog(null, forma,
              "Ingresar Interior", JOptionPane.OK_CANCEL_OPTION);
       
       if (result == JOptionPane.OK_OPTION) {

           //model.addRow(new Object[]{i.getNumPliegos(), i.getcTira(),i.getMaquinasInterior().get(0).getNombre(),i.getcRetira(),i.getMaquinasInterior().get(1).getNombre()});
           model.addRow(new Object[]{ forma.getjTextFieldLibroNumPaginas().getText(), forma.getColorTira(),forma.getColorRetira(),forma.getMaquinaTira(),
               forma.getMaquinaRetira()});
     
     }
   }//GEN-LAST:event_jButtonIngresarInteriorActionPerformed

   private void jButtonQuitarInteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonQuitarInteriorActionPerformed
       // TODO add your handling code here:
       DefaultTableModel model = (DefaultTableModel) jTableLibroInteriores.getModel();
       model.removeRow(jTableLibroInteriores.getSelectedRow());
   }//GEN-LAST:event_jButtonQuitarInteriorActionPerformed

   
   
   private void jButtonCalcularActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCalcularActionPerformed
       // TODO add your handling code here:
       //extraemos datos de la interfaz

       // extrae datos de publicacion
       String titulo = jTextFieldTitulo.getText();
       String cliente = jTextFieldCliente.getText();
       Formato formato = Formato.getEnum(jComboBoxFormato.getSelectedItem().toString());
       Integer tiraje = Integer.parseInt(jTextFieldTiraje.getText());
       
       //verificar el tipo de publicacion
       if(jComboBoxPublicacion.getSelectedItem().toString().equals("Libros")) {
           //datos libro
           boolean solapa = jCheckBoxSolapa.isSelected();
           procesarLibro(titulo,cliente,formato,tiraje,solapa);
       } else if(jComboBoxPublicacion.getSelectedItem().toString().equals("Volantes")){
           procesarRevista(titulo,cliente,formato,tiraje);
       } else if(jComboBoxPublicacion.getSelectedItem().toString().equals("Díptico")){
           
       } else if(jComboBoxPublicacion.getSelectedItem().toString().equals("Tríptico")){
           
       } else if(jComboBoxPublicacion.getSelectedItem().toString().equals("Revista")){
           
       } else if(jComboBoxPublicacion.getSelectedItem().toString().equals("Manual")){
           
       }
  
   }//GEN-LAST:event_jButtonCalcularActionPerformed

    private void jButtonSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSalirActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_jButtonSalirActionPerformed

    private void jComboBoxPublicacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxPublicacionActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBoxPublicacionActionPerformed

    private void procesarLibro(String titulo, String cliente, Formato formato, Integer tiraje, boolean solapa) {
       //crea libro
       Libro libro = new Libro(titulo,cliente,solapa,formato,tiraje);
       
       //CUBIERTA
       Cubierta cubierta;
       //extrae datos cubierta
       TCubierta tipoCubierta = TCubierta.valueOf(jComboBoxLibroTipoCubierta.getSelectedItem().toString()) ;
       
       //verifica si la cubierta tendra retira
       boolean retiraCubierta = jCheckBoxRetira.isSelected();
       
       //datos para tira
       Color cTira = Color.valueOf(jComboBoxCubiertaColorTira.getSelectedItem().toString()) ;
       Maquina Cubierta_maquina_tira = new Maquina(NMaquina.valueOf(jComboBoxCubiertaMaquinaTira.getSelectedItem().toString()));
       
       Color cRetira = Color.valueOf(jComboBoxCubiertaColorRetira.getSelectedItem().toString()) ;
       Maquina Cubierta_maquina_retira = new Maquina(NMaquina.valueOf(jComboBoxCubiertaMaquinaRetira.getSelectedItem().toString()));
       
       //crea cubierta dependiendo de si tiene o no retira
       if(retiraCubierta){
           cubierta = new Cubierta(tipoCubierta,cTira,cRetira,Cubierta_maquina_tira,Cubierta_maquina_retira);
       } else {
           cubierta = new Cubierta(tipoCubierta,cTira,Color.NINGUNO,Cubierta_maquina_tira,Cubierta_maquina_retira);
       }

       ArrayList<InteriorCompaginable> inters = new ArrayList<InteriorCompaginable>();
       for (int i = 0; i < jTableLibroInteriores.getRowCount(); i++) {
                   
                   // get paginas
                   Integer numPaginas = Integer.parseInt(jTableLibroInteriores.getModel().getValueAt(i, 0).toString());
                   // get color tira
                   Color cTiraInterior = Color.valueOf(jTableLibroInteriores.getModel().getValueAt(i, 1).toString());
                   // get color retira
                   Color cRetiraInterior = Color.valueOf(jTableLibroInteriores.getModel().getValueAt(i, 2).toString());                   
                   // get maquina tira
                   Maquina interiorMaquinaTira = new Maquina(NMaquina.valueOf(jTableLibroInteriores.getModel().getValueAt(i, 3).toString()));
                   // get maquina retira
                   Maquina interiorMaquinaRetira = new Maquina(NMaquina.valueOf(jTableLibroInteriores.getModel().getValueAt(i, 4).toString()));
                   
                   //creamos un interior
                   InteriorCompaginable inte = new InteriorCompaginable(numPaginas,cTiraInterior,cRetiraInterior,interiorMaquinaTira,interiorMaquinaRetira);

                   inters.add(inte);
                   
                   //vincula interior con libro
                   inte.setPub(libro);
           }
           
           //vincula cubierta con libro
           cubierta.setPub(libro);
           
           //vincula libro con cubierta
           libro.setCubierta(cubierta);
           
           //vincula libro con  array de interiores
           libro.setInterioresCompaginables(inters);
           
           //EMPIEZA CON LOS CALCULOS
//           Calculos dialog = new Calculos(this, true);
//           DecimalFormat df = new DecimalFormat("#.##");           
//
//           
//           dialog.getjLabelCubiertaPlacasTira().setText(df.format(libro.getCubierta().calcularPlacasTira()));
//           dialog.getjLabelCubiertaPlacasRetira().setText(df.format(libro.getCubierta().calcularPlacasRetira()));
//           dialog.getjLabelCubiertaPlacas().setText(df.format(libro.getCubierta().calcularPlacas()));
//           
//           dialog.getjLabelCubiertaTiempoTira().setText(df.format(libro.getCubierta().calcularTiempoImpresionTira())+ " hrs");
//           dialog.getjLabelCubiertaTiempoRetira().setText(df.format(libro.getCubierta().calcularTiempoImpresionRetira())+ " hrs");
//           dialog.getjLabelCubiertaTiempoMuerto().setText(df.format(libro.getCubierta().calcularTiempoMuerto())+ " hrs");
//           dialog.getjLabelTiempoRegistro().setText("3,0 hrs");     
//           dialog.getjLabelCubiertaTiempo().setText(df.format(libro.getCubierta().calcularTiempoImpresion() + 3.0)+ " hrs");
//           dialog.setLocationRelativeTo(this);
//           dialog.setVisible(true);           
           
           Calculos0 dialog_proto = new Calculos0(this, true);
           DecimalFormat df = new DecimalFormat("#.##");
           
           dialog_proto.getjTextAreaCalculos().setText("Titulo: " + libro.getTitulo()+ "\n");
           dialog_proto.getjTextAreaCalculos().append("==========CUBIERTA=========="+ "\n"); 
           dialog_proto.getjTextAreaCalculos().append("placas tira: " + df.format(libro.getCubierta().calcularPlacasTira()) + "\n"); 
           dialog_proto.getjTextAreaCalculos().append("placas retira: " + df.format(libro.getCubierta().calcularPlacasRetira())+ "\n"); 
           dialog_proto.getjTextAreaCalculos().append("placas totales: " + df.format(libro.getCubierta().calcularPlacas())+ "\n"); 
           dialog_proto.getjTextAreaCalculos().append("tiempo tira: " + df.format(libro.getCubierta().calcularTiempoImpresionTira())+ "\n"); 
           dialog_proto.getjTextAreaCalculos().append("tiempo retira: " + df.format(libro.getCubierta().calcularTiempoImpresionRetira())+ "\n"); 
           dialog_proto.getjTextAreaCalculos().append("tiempo muerto : " + df.format(libro.getCubierta().calcularTiempoMuerto())+ "\n"); 
           dialog_proto.getjTextAreaCalculos().append("tiempo registro: " + df.format(3.0)+ "\n"); 
           dialog_proto.getjTextAreaCalculos().append("TIEMPO TOTAL CUBIERTA: " + df.format(libro.getCubierta().calcularTiempoImpresion() + 3.0 )+ "\n"); 

            dialog_proto.getjTextAreaCalculos().append("==========INTERIORES=========="+ "\n");
            for (int i = 0; i < inters.size(); i++) {
                dialog_proto.getjTextAreaCalculos().append("<<<<<Interior: " + (i+1) + ">>>>>"+ "\n");
                dialog_proto.getjTextAreaCalculos().append("pliegos: " + df.format(libro.getInterioresCompaginables().get(i).calcularPliegos())+ "\n");
                dialog_proto.getjTextAreaCalculos().append("placas tira: " + df.format(libro.getInterioresCompaginables().get(i).calcularPlacasTira())+ "\n");
                dialog_proto.getjTextAreaCalculos().append("placas retira: " + df.format(libro.getInterioresCompaginables().get(i).calcularPlacasRetira())+ "\n");
                dialog_proto.getjTextAreaCalculos().append("placas totales: " + df.format(libro.getInterioresCompaginables().get(i).calcularPlacas())+ "\n");
                dialog_proto.getjTextAreaCalculos().append("tiempo tira: " + df.format(libro.getInterioresCompaginables().get(i).calcularTiempoImpresionTira())+ "\n");
                dialog_proto.getjTextAreaCalculos().append("tiempo retira: " + df.format(libro.getInterioresCompaginables().get(i).calcularTiempoImpresionRetira())+ "\n");
                dialog_proto.getjTextAreaCalculos().append("tiempo muerto: " + df.format(libro.getInterioresCompaginables().get(i).calcularTiempoMuerto())+ "\n");
                dialog_proto.getjTextAreaCalculos().append("TIEMPO TOTAL INTERIOR "+ (i+1)+ ": " + df.format(libro.getInterioresCompaginables().get(i).calcularTiempoImpresion()) + "\n");
            }

            dialog_proto.getjTextAreaCalculos().append("============LIBRO============"+ "\n");
            dialog_proto.getjTextAreaCalculos().append("=====Impresión====="+ "\n");
            dialog_proto.getjTextAreaCalculos().append("Pliegos totales: " + df.format(libro.calcularPliegos())+ "\n");
            dialog_proto.getjTextAreaCalculos().append("Placas totales (interiores): " + df.format(libro.calcularPlacas())+ "\n");
            dialog_proto.getjTextAreaCalculos().append("Tiempo impresion libro: " + df.format(libro.calcularTiempoImpresion() + 3.0)+ "\n");
            dialog_proto.getjTextAreaCalculos().append("======Doblado======"+ "\n");
            dialog_proto.getjTextAreaCalculos().append("Tiempo doblado: " + df.format(libro.calcularTiempoDoblado())+ "\n");
            dialog_proto.getjTextAreaCalculos().append("====Compaginado===="+ "\n");
            dialog_proto.getjTextAreaCalculos().append("Tiempo Compaginado: " + df.format(libro.calcularTiempoCompaginado())+ "\n");
            dialog_proto.getjTextAreaCalculos().append("======Encolado====="+ "\n");
            dialog_proto.getjTextAreaCalculos().append("Tiempo encolado: " + df.format(libro.calcularTiempoEncolado())+ "\n");
            dialog_proto.getjTextAreaCalculos().append("======Refilado=====" + "\n");
            dialog_proto.getjTextAreaCalculos().append("Tiempo refilado: " + df.format(libro.calcularTiempoRefilado())+ "\n");

            dialog_proto.getjTextAreaCalculos().append("Tiempo Acabados total: " + df.format(libro.calcularTiempoAcabado())+ "\n");

            dialog_proto.getjTextAreaCalculos().append("Tiempo Producción total libro: " + df.format(libro.calcularTiempoProduccion())+ "\n");
           
            dialog_proto.getjLabelTituloCalculos().setText("Cálculos  " + jComboBoxPublicacion.getSelectedItem().toString());
           dialog_proto.setLocationRelativeTo(this);
           dialog_proto.setVisible(true);
    }
    
    private void procesarRevista(String titulo, String cliente, Formato formato, Integer tiraje) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
   /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
            //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
            //UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
            UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Reporte.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Reporte.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Reporte.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Reporte.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        
        UIManager.put("swing.boldMetal", Boolean.FALSE);
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                Reporte reporte = new Reporte();
                reporte.setLocationRelativeTo(null);
                reporte.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonCalcular;
    private javax.swing.JButton jButtonIngresarInterior;
    private javax.swing.JButton jButtonQuitarInterior;
    private javax.swing.JButton jButtonSalir;
    private javax.swing.JCheckBox jCheckBoxRetira;
    private javax.swing.JCheckBox jCheckBoxSolapa;
    private javax.swing.JComboBox jComboBoxCubiertaColorRetira;
    private javax.swing.JComboBox jComboBoxCubiertaColorTira;
    private javax.swing.JComboBox jComboBoxCubiertaMaquinaRetira;
    private javax.swing.JComboBox jComboBoxCubiertaMaquinaTira;
    private javax.swing.JComboBox jComboBoxFormato;
    private javax.swing.JComboBox jComboBoxLibroTipoCubierta;
    private javax.swing.JComboBox jComboBoxPublicacion;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanelCambiante;
    private javax.swing.JPanel jPanelCambianteRetira;
    private javax.swing.JPanel jPanelDatosGenerales;
    private javax.swing.JPanel jPanelDatosPublicaciones;
    private javax.swing.JPanel jPanelLibroCubierta;
    private javax.swing.JPanel jPanelLibroInteriores;
    private javax.swing.JPanel jPanelLibros;
    private javax.swing.JPanel jPanelVolantes;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTableLibroInteriores;
    private javax.swing.JTextField jTextFieldCliente;
    private javax.swing.JTextField jTextFieldTiraje;
    private javax.swing.JTextField jTextFieldTitulo;
    // End of variables declaration//GEN-END:variables
}
